package node

import (
	"kms-backend/controllers/node"

	"github.com/gin-gonic/gin"
)

func detail(nodeGroup *gin.RouterGroup) {
	nodeGroup.GET("/detail", node.Detail)
}

func list(nodeGroup *gin.RouterGroup) {
	nodeGroup.GET("/list", node.List)
}

func update(nodeGroup *gin.RouterGroup) {
	nodeGroup.POST("/update", node.Update)
}

func RegisterSubRouter(g *gin.RouterGroup) {
	// 配置路由策略
	nodeGroup := g.Group("/node")
	detail(nodeGroup)
	list(nodeGroup)
	update(nodeGroup)

}
